from random import randint

# Constants
product_name = 'LH-ABC'
version_short = '3.3.0.2'
version = version_short + ' (' + product_name + ' - BitTornado 0.3.18)'
user_agent = product_name + '/' + version_short
author = "Roee Shlomo"
home_page = "http://code.google.com/p/lh-abc"
report_email = 'lh.abc.support@gmail.com'
build_number = 228

# PeerID
mapbase64 = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz.-'
prefix = "-" + product_name[:2] + ''.join(version_short.split('.')) + "-"
prefix = prefix.upper()

def createPeerID():
    peerid = prefix
    while len(peerid) < 20:
        peerid += mapbase64[randint(0, 61)]
    return peerid
